package com.hlm.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
@EnableConfigServer
public class ConfigApplication {
    @Value("${server.port}")
    private String status;
    public static void main(String[] args) { SpringApplication.run(ConfigApplication.class, args);

    }
    @GetMapping("/")
    public String hello(){
        return status;
    }

}
